Synthesis, magnetic properties and electronic structure of the S  =  ½ uniform spin chain system InCuPO5