Habitability and biogenic effects on planetary atmospheres