The present application relates to compounds of formula (I) and pharmaceutically acceptable salts and solvates thereof, wherein the substituents are as defined herein, compositions containing such compounds and the uses of such compounds in producing medicaments for the treatment of various diseases and conditions, such as of the central nervous system.