Position-sensitive spectroscopy of ultra-cold neutrons with Timepix pixel detector