Molecular dynamics studies of the condensed phases of n-butane and their transitions. I: Techniques and model results