Matlab function to fill consecutive NaNs with last available value