Trapping and alignment of a microfibre using the discrete dipole approximation