Does environmental sustainability attract foreign investment? Evidence from developing countries