Convexity and subconvexity bounds for automorphic periods and special values of L-functions