Understanding the photothermal effect of gold nanostars and nanorods for biomedical applications